home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2000 #5 / Amiga Plus CD - 2000 - No. 5.iso / Tools / Dev / fpc / source / docs / refex / ex48.pp < prev    next >
Encoding:
Text File  |  2000-01-01  |  319 b   |  15 lines

  1. Program Example48;
  2.  
  3. { Program to demonstrate the Pos function. }
  4.  
  5. Var 
  6.   S : String;
  7.  
  8. begin
  9.   S:='The first space in this sentence is at position : ';
  10.   Writeln (S,pos(' ',S));
  11.   S:='The last letter of the alphabet doesn''t appear in this sentence ';
  12.   If (Pos ('Z',S)=0) and (Pos('z',S)=0) then 
  13.     Writeln (S);
  14. end.
  15.